/*
 * @LastEditors: zhouyaxue
 * @Date: 2022-08-30 15:27:55
 * @LastEditTime: 2022-12-16 17:01:50
 */
import { getSession } from '@/public/utils';
export default {
  state: {
    isLogin: getSession('userInfo') ? true : false
  },
  getters: {
    getLogin (state: any): boolean {
      return state.isLogin;
    }
  },
  mutations: {
    setLogin (state: any, val: boolean): void {
      state.isLogin = val;
    }
  },
  actions: {
  }
};
